package com.example.pattern.singleton;

public class HungrySingleton {
    //先静态，后动态
    //先属性，后方法
    //先上后下
    private static final HungrySingleton singleton = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getSingleton() {
        return singleton;
    }
}
